﻿using dis.sys.hw1.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.ServiceModel;
using System.Text;

namespace dis.sys.hw1.Contract
{
    [ServiceKnownType(typeof(Hotel))]
    [ServiceKnownType(typeof(HotelRoom))]
    [ServiceContract]
    public interface IDelegateHotelService
    {
        [MethodImpl(MethodImplOptions.Synchronized)]
        [OperationContract]
        IList<Hotel> GetAvailableRooms(DateTime fromDate, DateTime toDate, double minStars, double minRating);

        //[OperationContract]
        //bool HasHotelsInQueryRange(double minStars, double minRating);
    }
}
